/**
 * @(#)Text2.java
 *
 *
 * @author 
 * @version 1.00 2011/10/30
 */

public class clock {
    public static double get_time(){
    	return (double) System.currentTimeMillis() / 1000;
    }
    
    public static void timed_wait(double waitTime){
    	double startTime, currentTime, elapsed;
    	elapsed = 0;
    	startTime = clock.get_time();
    	currentTime = startTime;
    	
    	System.out.println("\tStart Time: " + startTime);
    	while (elapsed < waitTime){
    		currentTime = clock.get_time();
    		elapsed = currentTime - startTime;   		
    	}
    	
    	System.out.println("\tEnd Time: " + currentTime + "\tElapsed: " + elapsed);
    	return;
    }
}